<template>
	<view class="layout">
		<view class="box" v-for="item in arrs" :key="item.id">
			<view class="title">{{item.title}}</view>
			<view class="content">{{item.body}}</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';
	const arrs = ref([])
	uni.request({
		url: 'https://jsonplaceholder.typicode.com/posts',		
	}).then(data=>{
		console.log(data);
	})
	
	
</script>

<style lang="scss">
	.layout {
		padding: 20rpx;
		.box{
			border-bottom: 1px solid #e6cf9f;
			padding: 10rpx 0;
			margin-bottom: 10rpx;
			.title{
				font-size: 36rpx;
				margin-bottom: 10rpx;
			}
			.content{
				font-size:24rpx;
			}
		}
	}
</style>